package com.b2c.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @ClassName ExceptionEnums
 * @Description: TODO
 * @Author shenyaqi
 * @Date 2020/7/14
 * @Version V1.0
 **/
@Getter//get方法
@AllArgsConstructor//有参构造
@NoArgsConstructor//无参构造
public enum  ExceptionEnums {
    PRICE_CANNOT_BE_NULL(400,"价钱不能为空"),
//    NANME_TOO_LONG(400,"名字太长了"),
    CATEGORY_CANNOT_BE_NULL(400,"没有分类异常"),
    DEL_CATEGORY_ERROR(500,"删除分类报错"),
    LIST_CANNOT_BE_NULL(123,"没有子级节点"),
    BRAND_CANNOT_BE_NULL(404,"没有品牌数据"),
    ;
    private int code;
    private String msg;
}
